<template>
  <basic-container>
    <avue-tabs :option="tabsOption" @change="handleChange"></avue-tabs>
    <template v-if="tabsType.prop==='1'">
      <service-common />
    </template>
    <template v-else-if="tabsType.prop==='2'">
      <service-direct />
    </template>
  </basic-container>
</template>

<script>
import serviceCommon from "./components/service_common";
import serviceDirect from "./components/service_direct";
export default {
  components: {
    serviceCommon,
    serviceDirect
  },
  data() {
    return {
      tabsType: {},
      tabsOption: {
        column: [
          {
            label: "普通服务商",
            prop: "1",
          },
          {
            label: "直签服务商",
            prop: "2",
          },
        ],
      },
    };
  },
  computed: {
  },
  created() {
    this.tabsType = this.tabsOption.column[0];
  },
  methods: {
    handleChange(column) {
      this.tabsType = column;
      // this.$message.success(JSON.stringify(column));
    }
  },
};
</script>

<style>
</style>
